/* eslint-disable */
import Vue from 'vue';
import App from './App';
import router from './router';
import Router from 'vue-router'
import './assets/css/common/border.css';
import './assets/css/common/reset.css';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// import axios from'axios';
// import { http } from './util/http.js';

Vue.use(ElementUI);
Vue.config.productionTip = false;
// Vue.prototype.axios = axios;
// Vue.prototype.$api = 'http://kkkei.free.idcfengye.com/homeworkassqistant_war_exploded/';
// Vue.prototype.$http = http;


const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
});
